package com.example.mybatisplusdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("orders")
public class Order {
    @TableId(value = "id",type = IdType.AUTO)
    private String id;
    private String ordernum;
    private String userid;
    private String busid;
    private String createtime;
    private String issend;
    private String goods;
    private String total;
    @TableField(exist = false)
    private String usernike;
    @TableField(exist = false)
    private String busnike;

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", ordernum='" + ordernum + '\'' +
                ", userid='" + userid + '\'' +
                ", busid='" + busid + '\'' +
                ", createtime='" + createtime + '\'' +
                ", issend='" + issend + '\'' +
                ", goods='" + goods + '\'' +
                ", total='" + total + '\'' +
                ", usernike='" + usernike + '\'' +
                ", busnike='" + busnike + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getBusid() {
        return busid;
    }

    public void setBusid(String busid) {
        this.busid = busid;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getIssend() {
        return issend;
    }

    public void setIssend(String issend) {
        this.issend = issend;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getUsernike() {
        return usernike;
    }

    public void setUsernike(String usernike) {
        this.usernike = usernike;
    }

    public String getBusnike() {
        return busnike;
    }

    public void setBusnike(String busnike) {
        this.busnike = busnike;
    }
}
